package cn.factorybox.item.service;

import cn.factorybox.model.entity.FactoryDevice;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-09-11 11:25
 */
public interface FactoryDeviceService {
    void save(FactoryDevice factoryDevice);

    int update(FactoryDevice factoryDevice);

    void delete(String id);

    Map<String, Object> selectList(Integer number);

    Map<String, Object> selectAllDevices();

    Map<String, Object> getDistributeMessage();

    List<FactoryDevice> selectListByRoomId(String roomId);

    List<FactoryDevice> selectAllDevicesOfVersion3(HttpServletRequest request) throws Exception;

    Map<String,Object> getSingleDeviceData(String id);

    FactoryDevice getFactoryDevice(String id);

    Map<String,Object> getSingleDeviceLatestData(String id);

    List<Integer> countAllBeforeAweek(String id);

    Map<String, Object> selectAllDevicesOfCompany(String companyId);

}
